package com.example.homework;

import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;

public class MyViewHolder extends RecyclerView.ViewHolder {

    TextView shopName;
    TextView title;
    TextView count;
    TextView address;
    TextView price;
    ImageView imageView;
    View functionView;

    public MyViewHolder(@NonNull View itemView) {
        super(itemView);
        functionView = itemView;
        imageView = itemView.findViewById(R.id.iv_iamge);
        title = (TextView) itemView.findViewById(R.id.tv_title);
        count = (TextView) itemView.findViewById(R.id.tv_count);
        address = (TextView) itemView.findViewById(R.id.tv_address);
        price = (TextView) itemView.findViewById(R.id.tv_new_price);
        shopName = (TextView) itemView.findViewById(R.id.tv_shopname);
    }
}
